import re

phoneNumberRegex = re.compile('\d{3}-\d{3}-\d{4}')
mo = phoneNumberRegex.findall('phone number 123-456-7890 and 098-765-4321')
print(mo)